import { defineStore } from 'pinia'

export const useUserStore = defineStore('user', {
  state: () => ({
    userInfo: {
      image: '',
      username: '',
      name: '',
      phone: '',
      email: '',
      department: '',
      position: ''
    }
  }),
  
  actions: {
    updateUserInfo(info) {
      this.userInfo = { ...this.userInfo, ...info }
    }
  }
}) 